<template>
  <el-tree :data="dataEntities"  default-expand-all>
    <div class="custom-tree-node" slot-scope="{ node, data }">
        <span>{{ data.name }}</span>
        <span><el-tag type="info" size="mini">排序: {{data.sort}}</el-tag></span>
        <span>
          <el-button
              type="text"
              size="mini"
              >
            修改
          </el-button>
          <el-button
              type="text"
              size="mini"
              >
            删除
          </el-button>
          <el-button
              type="text"
              size="mini"
              >
            添加下级
          </el-button>
        </span>
      </div>
  </el-tree>
</template>

<script>


    export default {
        components: {},
        props: {
            dataEntities: {
                type: Array,
                default: []
            },
            dataSearch: {
                type: Object,
                default: {}
            },
            statusOptions: {
                type: Array,
                default: []
            },

        },
        data() {
            return {
                formLabelWidth: window.formLabelWidth,
                formData: {},
                formErrors: {},
                formSearchData: {},
            }
        },
        created() {
            this.formSearchData = this.dataSearch;

        },
        mounted() {
            let _this = this;

        },
        methods: {
            valueGet(obj){
              console.log(obj);
              return 'a';
            },

            search:function () {
                this.formSearchData.pager_page = ''
                window.location.href = LeUtils.buildUrl(window.location.href,this.formSearchData);
            }
        }
    }
</script>
